package test8;

/**
 * @title:
 * @description:
 * @Author 易俊杰
 * @data: 2022/8/20 19:50
 * @version: V1.0
 */
public class Demo3 {
    public static void main(String[] args) {
        System.out.println((int) '1');
        System.out.println((int) 'A');
        System.out.println((int) 'z');
        System.out.println((int) 'Z');
    }

    public static boolean signalVerify(String signal) {
        String[] s = signal.split("=");
        String prefix = s[0], suffix = s[1];
        //1. = 左右不能有空格
        char cp = prefix.charAt(prefix.length() - 1);
        char cs = suffix.charAt(suffix.length() - 1);
        if (cp == ' ' || cs == ' ') return false;
        if (cp < 'A' || cp > 'z') return false;
        if ((cs >= 'A' && cs <= 'z') || (cs >= '0' && cs <= '9') || cs == ' ') return true;
        return false;
    }
}
